<?php

	$this->Html->script(array('jquery.maskedinput-1.2.2.min','maskinput','flexigrid.pack','somente-numeros'), false);
	$this->Html->css('flexigrid', null, array('inline' => false));

	$planocurricular_id = $this->request->data['PlanoCurricularDisciplina']['plano_curricular_id'];
	
	echo "<fieldset><legend>Alterar Disciplina: $nome_plano_curricular</legend>";
	
	echo $this->Form->create('PlanoCurricularDisciplina');
	echo $this->Form->input('id');
	echo $this->Form->input('plano_curricular_id',array('type' => 'hidden'));
	echo $this->Form->input('disciplina_id',array('type' => 'select', 'options' => $disciplinas, 'empty' => 'Selecione...', 'class' => 'tamanho50', 'label' => __('Disciplinas')));
	echo $this->Form->input('num_aulas', array('type' => 'text', 'label' => __('Número de Aula'), 'class' => 'tamanho10', 'maxlength' => 3, 'onKeyPress' => 'return SomenteNumero(event)'));
	echo '<div class="botoes_form">';
	echo $this->Form->button('Salvar', array('type' => 'submit'));
	echo $this->Form->button('Voltar', array('type'=>'button', 'onClick' => "javascript:location='{$this->request->base}/plano_curriculares/alterar/$planocurricular_id'"));
	echo '</div>'; 
	echo $this->Form->end();
	echo '</fieldset>';